package com.kgcx.push.service;

import com.kgcx.push.entity.PayLog;
import com.kgcx.push.mapper.PayMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2018/5/9 15:25
 * @since 0.1
 */
@Service
public class PayService{
    @Autowired
    private PayMapper payMapper;

    /**
     * 查询所有
     * @return
     */
    public List<PayLog> selectList(){
        return payMapper.selectAll();
    }

    /***
     * 清空所有数据
     */
    public void deleteAll(){ payMapper.delete(new PayLog()); }
}
